<?php
/**
 * Created by PhpStorm.
 * User: hp
 * Date: 2018/9/21
 * Time: 20:34
 */

class book extends commodity
{
    private $author;
    private $Press;
    function B()
    {
        echo $this->name . "<br>" . $this->money . "<br>" . $this->sum."<br>".$this->author."<br>".$this->Press."<br>";
    }
    function  __get($name)
    {
        return $this->$name;
    }
    function  __set($name, $value)
    {
        return $this->$name=$value;
    }
}